package org.heart.thirdService.hefengAPI.service;

import org.heart.thirdService.hefengAPI.req.DailyWeather;
import org.heart.thirdService.hefengAPI.req.HourlyWeather;
import org.heart.thirdService.hefengAPI.req.Location;
import org.heart.thirdService.hefengAPI.req.NowWeather;

import java.util.List;

public interface HeFengApiService {

    /**
     * 获取实时天气信息
     */
    public NowWeather getNowWeather(String location);

    /**
     * 获取未来七天天气信息
     */
    public List<DailyWeather> get7DayWeather(String location);

    /**
     * 获取未来 24h 时段，天气预报信息
     */
    public List<HourlyWeather> getHourDuanWeather(String location);

    /**
     * 根据经纬度获取城市地址信息
     */
    public Location getLocation(String longitude ,String latitude);
}
